<template>
  <div id="app" class="no-select">
<!--    <h1 id="title">疫情数据报告</h1>-->
<!--    <wave-loading v-if="true" info="数据加载中"></wave-loading>-->
    <router-view/>
  </div>
</template>

<script>
import {mapMutations, mapState} from "vuex";
import WaveLoading from "@/components/WaveLoading";

export default {
  name: 'app',
  components: {WaveLoading},
  computed: {
    ...mapState(['settings'])
  },
  methods: {
    ...mapMutations(['initVolcreateEpidemic'])
  },
  created() {
  },
  mounted() {
    this.initVolcreateEpidemic();
    window.addEventListener('beforeunload', e => {
      localStorage.setItem("volcreate_epidemic_settings", JSON.stringify(this.settings))
    });
  }


}
</script>

<style>

@import url('https://fonts.googleapis.com/css2?family=ZCOOL+KuaiLe&display=swap');

#app {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: var(--font-color);
  font-family: Helvetica, "PingFang SC", "Microsoft Yahei", sans-serif;
}

#title {
  /*position: absolute;*/
  /*width: 20%;*/
  /*left: 35%;*/
  margin-top: 10px;
}
</style>
